﻿using BingoClientModel;
using BingoGameServerConsole.Business;
using BingoServerCommon.Common;

namespace BingoGameServerConsole
{
	public class PackageRegister
	{

		/// <summary>
		/// 注册
		/// </summary>
		public static void PackagesRegister()
		{
			//注册消息协议
            PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CG_RequestRoomInfo, new PackageRequestRoomInfo(EnumPackCommand.CG_RequestRoomInfo));
            PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CG_RequestPlayerNum, new PackageRequestPlayerNum(EnumPackCommand.CG_RequestPlayerNum));
            PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CG_SelectCard, new PackageSelectCard(EnumPackCommand.CG_SelectCard));
            PackageFactory.Instance.RegisterPackage((int)EnumPackCommand.CG_Bingo, new PackageBingo(EnumPackCommand.CG_Bingo));
        }
	}
}
